<?php
class Task extends AppModel {

	var $name = 'Task';
	var $validate = array(
		'categories_id' => VALID_NOT_EMPTY,
		'priorities_id' => VALID_NOT_EMPTY,
		'task' => VALID_NOT_EMPTY,
	);

	//The Associations below have been created with all possible keys, those that are not needed can be removed
	var $belongsTo = array(
			'Category' =>
				array('className' => 'Category',
						'foreignKey' => 'categories_id',
						'conditions' => '',
						'fields' => '',
						'order' => '',
						'counterCache' => ''
				),

			'Priority' =>
				array('className' => 'Priority',
						'foreignKey' => 'priorities_id',
						'conditions' => '',
						'fields' => '',
						'order' => '',
						'counterCache' => ''
				),

			'Type' =>
				array('className' => 'Type',
						'foreignKey' => 'types_id',
						'conditions' => '',
						'fields' => '',
						'order' => '',
						'counterCache' => ''
				),


	);

}
?>